package com.michael.retail.sys.api.feign;

import com.michael.retail.commons.pojo.global.R;
import com.michael.retail.sys.api.pojo.entity.OAuth2Client;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 类功能描述:
 * <pre>
 *   OAuth2 客户端方法
 * </pre>
 *
 * @author Michael
 * @version 1.0
 * @date 2021/7/5 19:27
 */
@SuppressWarnings("ALL")
@FeignClient(value = "michael-sys", contextId = "oauth2-client")
public interface OAuth2ClientFeign {

    @GetMapping("/api/v1/oauth-clients/{clientId}")
    R<OAuth2Client> getOAuth2ClientByClientId(@PathVariable("clientId") String clientId);

}
